<?
function getmicrotime($elapsed=false){
    list($usec, $sec) = explode(" ", microtime());
    $tm = ((float)$usec + (float)$sec);
    if ($elapsed) return $tm-$elapsed;
    else return $tm;
}

include('sys1.php');

$st=getmicrotime();

  for($i=0; $i<1000; $i++){
    
    /*
    $db=mysql_connect('localhost', 'root', ''); mysql_select_db('lib3_test');
    $rs=mysql_query("SELECT s_id,s_url,s_page FROM structure WHERE s_url='page1/sub2'");
    while ( $res=mysql_fetch_assoc($rs) ){
      //echo '<pre>',print_r($res,true),'</pre>';
      $tst=$res;
    }
    mysql_free_result($rs);
    mysql_close($db);
    */
    
    //include('sys1.php');
    $tst=$reg['structure']['RU']['default']['hotels'];
    //unset($reg);
    //$tst=$reg['structure']['hotels']['handlers'];
    
  }

echo $et=getmicrotime($st);


?>
